Avoid calls to strlen in path processing functions.
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 10 Jul 2012 06:23:45 +0000 (10:23 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Tue, 10 Jul 2012 06:23:45 +0000 (10:23 +0400)
commitdc966a64e86c3ccee47197707f89e97763f1c6e4
tree2f93a622844fcbee38c129ae7a2312eea6118c7a
parent87017e71dde38d0732cb0e322177164e141ed178
Avoid calls to strlen in path processing functions.
* fileio.c (file_name_as_directory): Add comment.  Change to add
srclen argument and return the length of result.  Adjust users
accordingly.
(directory_file_name): Fix comment.  Change to add srclen argument,
swap 1nd and 2st arguments to obey the common convention.  Adjust
users accordingly.
* filelock.c (fill_in_lock_file_name): Avoid calls to strlen.
src/ChangeLog
src/fileio.c
src/filelock.c